package Test_319_6;

public class Computer extends  Student{
    //属性
    double Operational ;//操作能力
    double write;//英语写作

    @Override
    public Double CourseScore() {
        Double score = null;

        score = MyUtils.getDaulbeValue(this.getOperational())*0.4
                +MyUtils.getDaulbeValue(this.getWrite())*0.2
                +MyUtils.getDaulbeValue(this.getMidterms())*0.2
                +MyUtils.getDaulbeValue(this.getFinals())*0.2;

        return score == 0.0 ? null:score;
    }


    //getter和setter

    public double getOperational() {
        Operational = Operational*0.4;
        return Operational;
    }

    public void setOperational(double operational) {
        Operational = operational;
    }

    public double getWrite() {
        write = write*0.2;
        return write;
    }

}
